package com.lap.auth.application.menu.command;

import org.hibernate.validator.constraints.Length;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Schema(description = "元件命令")
public class MetaCmd {

  @Length(max = 128, message = "{menu.title.max.length}")
  @Getter
  @Setter
  @Schema(description = "国际化编码")
  private String title;

  @Length(max = 128, message = "{menu.icon.max.length}")
  @Getter
  @Setter
  @Schema(description = "图标")
  private String icon;

  @Schema(description = "是否隐藏")
  private boolean isHide;

  @Schema(description = "是否缓存")
  private boolean isKeepAlive;

  @Schema(description = "是否固定tag")
  private boolean isAffix;

  @Schema(description = "是否外链")
  private boolean isIframe;

  public boolean getIsHide() {
    return isHide;
  }

  public void setIsHide(boolean hide) {
    this.isHide = hide;
  }

  public boolean getIsKeepAlive() {
    return isKeepAlive;
  }

  public void setIsKeepAlive(boolean keepAlive) {
    this.isKeepAlive = keepAlive;
  }

  public boolean getIsAffix() {
    return isAffix;
  }

  public void setIsAffix(boolean affix) {
    this.isAffix = affix;
  }

  public boolean getIsIframe() {
    return isIframe;
  }

  public void setIsIframe(boolean iframe) {
    this.isIframe = iframe;
  }
}
